Answer "Get real. You can't install it in this stack"
hide message window
exit mouseup
end if
--
ModResCopy sourceStack,fname,"XCMD","ShowMenu"
--
get the result
if first char of it is "E" then
put it into the message box
beep
answer "Attempt to install resource has failed."
else
beep
answer "Resource installation successful"
end if
hide message window
end mouseUp
-- part contents for background part 2
----- text -----
ShowMenu
-- part contents for background part 13
----- text -----
11
-- part contents for background part 3
----- text -----
ShowMenu will redisplay any menus you've added to HyperCard using the NewMenu* XFCN. HyperCard doesn't know you've added menus, and if you change userLevels or use the paint tools HyperCard will erase your menus accidentally. It doesn't mean it, it just doesn't know any better. An example of using ShowMenu would be:
on idle
global myMenu
ShowMenu myMenu
pass idle
end idle
Again, the menu number should be the same number that was returned by NewMenu*.
For a more efficent method of use, see the sample script provided with NewMenu*.
•••
All the credit, (even the descriptions above) go to the creator of this ingenious XCMD:
Nine to Five Software Company
P.O. Box 915
Greenwood, IN 46142
(317) 887-2154
& Michael Long
See also NewMenu*, EnableMenu*, DeleteMenu*, ChangeMenu*, and CheckMenu*
-- part contents for background part 10
----- text -----
Syntax:
ShowMenu <menuNumber>
<menuNumber> is the MenuID returned by the original call to newMenu.